<html>

<body>

<?php

$link = mysql_connect("localhost", "carnitos","charliebrown");

mysql_select_db("colegio", $link);

$result = mysql_query("SELECT * FROM libro", $link);

echo "Nombre: ".mysql_result($result, 0, "titulo")."<br>";

?>

</body>

</html>